

export const appRoutes = [
  {
    //匹配空路由,放第一,遇到空路由转发到user
    //注意如果下面有空路由,则这里不用配置转发
    path: "",
    redirectTo: 'user',
    pathMatch: 'full'
  },
  {
    path: 'user',
    loadChildren: './user/user.module#UserModule'
  },
  {
    path: 'home',
    loadChildren: './home/home.module#HomeModule'
  },
  {
   //匹配错误地址,默认到user
    path: "**",
    redirectTo: 'user'
  },

];
